#include<bits/stdc++.h>
using namespace std;

int main() {
	int t;
	cin >> t;
	while(t--) {
		double n;
		cin >> n;
		double l = 0, r = 0x3f3f3f3f;
		while(r - l > 0.0000001) {
			double mid = (l + r) / 2;
			if(0.5 * sqrt(mid * mid * mid) + sin(mid) > n)r = mid;
			else l = mid;
		}
		printf("%lf\n", l);
	}
	return 0;
}
